import { get, post } from "../utils/request";

export const getChannelList = (current, size, params) => {
  return get("/cloud-channel/channel/channelinfo/page", {
    current,
    size,
    ...params,
  });
};
// 查询商户关系模版
export const getChannelTemplate = (channelCode) => {
  return get(
    "/cloud-agent/agent/agentinfo/getCerTemplate?channelCode=" + channelCode
  );
};
// 查询渠道详情
export const getChannelDetail = (id) => {
  return get("/cloud-channel/channel/channelinfo/detail?id=" + id);
};
